$OpenBSD: patch-libgphoto2_port_usb_libusb_c,v 1.4 2016/11/21 09:26:59 ajacoutot Exp $
--- libgphoto2_port/usb/libusb.c.orig	Sat Nov 19 23:52:42 2016
+++ libgphoto2_port/usb/libusb.c	Mon Nov 21 09:50:47 2016
@@ -44,6 +44,10 @@
 #include <gphoto2/gphoto2-port-result.h>
 #include <gphoto2/gphoto2-port-log.h>
 
+#if !defined(ENODATA) && defined(ENOENT)
+#define ENODATA ENOENT
+#endif
+
 #ifdef ENABLE_NLS
 #  include <libintl.h>
 #  undef _
